const Router = require("koa-router");
const router = new Router({ prefix: "/advertisement" });
const { auth, hasAdminPermission } = require("../middleware/auth.middleware");
const { getAdvertisement,addAdvertisement,updateAdvertisement,deleteAdvertisement } = require("../controller/advertisement/advertisement.controller");

router.get("/get-advertisement", getAdvertisement);
router.post("/add-advertisement", auth, hasAdminPermission, addAdvertisement);
router.put("/update-advertisement", auth, hasAdminPermission, updateAdvertisement);
router.delete("/delete-advertisement", auth, hasAdminPermission, deleteAdvertisement);
module.exports = router;
